package com.ryskoo.common.dto.product;

import com.ryskoo.common.dto.BasicDTO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性DTO
 * @author thq
 *
 */
public class ProductAttributeDTO extends BasicDTO{

	private static final long serialVersionUID = 1L;

	/* 参数名称 */
	private String attributeName;

	/* 是否启用 false表示否 true表示是 */
	private boolean status;
	
	/* 所属行业 */
	private String industryCate;
	
	/* 所属行业名称 */
	private String industryName;

	/*是否被关联，0为否，1为是*/
	private String selected = "0";
	
	/*属性明细*/
	private List<Map<String, String>> attributeValues;
	
	/*属性对应的属性值，显示在列表上*/
	private String attributeValueNames = "";

	/* 属性值对象 */
	private List<ProductAttributeDetailDTO> attributeDetails;
	
	
	public List<ProductAttributeDetailDTO> getAttributeDetails() {
		return attributeDetails;
	}

	public void setAttributeDetails(List<ProductAttributeDetailDTO> attributeDetails) {
		this.attributeDetails = attributeDetails;
	}

	public String getAttributeName() {
		return attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public String getSelected() {
		return selected;
	}

	public void setSelected(String selected) {
		this.selected = selected;
	}

	public List<Map<String, String>> getAttributeValues() {
		return attributeValues;
	}

	public void setAttributeValues(List<Map<String, String>> attributeValues) {
		this.attributeValues = attributeValues;
	}

	public String getIndustryCate() {
		return industryCate;
	}

	public String getIndustryName() {
		return industryName;
	}

	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}

	public void setIndustryCate(String industryCate) {
		this.industryCate = industryCate;
	}

	public String getAttributeValueNames() {
		if (this.attributeValues != null && this.attributeValues.size() > 0) {
			for (Map<String, String> map : attributeValues) {
				attributeValueNames += map.get("name") + " ";
			}
		}
		return attributeValueNames;
	}

	public void setAttributeValueNames(String attributeValueNames) {
		this.attributeValueNames = attributeValueNames;
	}

	
}
